package com.example.supplychainbackend.mapper;

import com.example.supplychainbackend.controller.dto.logistic.DomesticLogisticDto;
import com.example.supplychainbackend.controller.dto.logistic.ForeignLogisticDto;
import com.example.supplychainbackend.entity.logistic.DomesticLogisticEntity;
import com.example.supplychainbackend.entity.logistic.ForeignLogisticEntity;
import org.mapstruct.Builder;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring",
        builder = @Builder(disableBuilder = true))
public interface LogisticMapper {

    DomesticLogisticDto toDomesticLogisticDto(DomesticLogisticEntity entity);
    ForeignLogisticDto toForeignLogisticDto(ForeignLogisticEntity entity);

    DomesticLogisticEntity toDomesticLogisticEntity(DomesticLogisticDto dto);
    ForeignLogisticEntity toForeignLogisticEntity(ForeignLogisticDto dto);

    List<DomesticLogisticDto> toDomesticLogisticDtoList(List<DomesticLogisticEntity> entity);
    List<ForeignLogisticDto> toForeignLogisticDtoList(List<ForeignLogisticEntity> entity);


}
